package app.foo.planetadnzombiedemo.entity;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.view.MotionEvent;

import app.foo.planetadnzombiedemo.global.Config;
import app.foo.planetadnzombiedemo.model.BaseModel;

public class SeedFlower extends BaseModel implements Touchable  {
    //触摸区域(卡片范围)
    private Rect touchAreas;
    public SeedFlower(int locationX,int  locationY){
        this.locationX=locationX;
        this.locationY=locationY;
        this.isAlife=true;
        touchAreas=new Rect(locationX,locationY,
                locationX+ Config.seedFlower.getWidth(),
                locationY+Config.seedFlower.getHeight());
    }
    @Override
    public void drawSelf(Canvas canvas, Paint paint) {
        if(isAlife){

        }
    }

    @Override
    public int getModelWidth() {
        return Config.seedFlower.getWidth();
    }

    @Override
    public boolean onTouch(MotionEvent event) {
        return false;
    }
}
